package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName DictValueParam
 * @Description
 * @Author ibeeking
 * @Date 2020-12-02 16:06
 **/
@Data
public class DictValueParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @NotNull(message = "Id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 字典类型id
     */
    @NotNull(message = "字典类型Id不能为空", groups = {BaseValidationGroup.Insert.class})
    private Long parentId;

    /**
     * 标签
     */
    @NotBlank(message = "字典标签不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String label;

    /**
     * 字典值
     */
    @NotBlank(message = "字典值不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String value;

    /**
     * 是否默认选中，1-是，0-否
     */
    private Integer isDefault;

    /**
     * 备注
     */
    private String remark;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private Integer sort;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 更新人
     */
    private Long modifyBy;

}
